import request from '@/utils/request'

// 添加树洞
export const addTreeHole = (content: String) => {
  return request({
    url: '/treeHole/auth/addTreeHole',
    method: 'post',
    data: {
      content: JSON.stringify(content)
    }
  })
}

// 获取树洞列表
export const getTreeHoleList = () => {
  return request.get('/treeHole/getTreeHoleList', {
    method: 'get'
  })
}
